<?php

class CoreException extends Exception
{
	public function __construct($message, $code = 0)
	{
		parent::__construct($message, $code);
	}

	public function get()
	{
		return array('message' => $this->getMessage(), 'file' => $this->getFile(), 'line' => $this->getLine(), 'type' => 'core');
	}

	public function __toString()
	{
		return $this->getMessage();
	}
}

?>